FROM registry.cn-hangzhou.aliyuncs.com/niit-baldex/alpine-java:openjdk8-openj9_cn_slim

MAINTAINER james.li@niit.com.cn

RUN mkdir -p /niit/java-pp-online-music

WORKDIR /niit/java-pp-online-music

EXPOSE 8888

ADD ./target/OnlineMusic-*.jar ./online-music.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "online-music.jar"]

CMD ["--spring.profiles.active=dev"]
